GitHub Actions
ag -g '\.ya?ml$' | xargs -t -I{} -P $(nproc) command {} は何か結果が空になるので
git ls-files | grep -E '\.ya?ml$' | xargs -t -I{} -P $(nproc) command {} を使ふ
<del>( find . -name '*.yml' ; find . -name '*.yaml' ) | xargs -t -I{} -P $(nproc) command {} を使ふ</del>
lint
actionlint
$ actionlint
code:workflow-lint.yaml
"on":
workflow_call:
inputs:
?
secrets:
?
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- ?
code:on-push-main.yaml
"on":
push:
jobs:
lint:
uses: ./.github/workflows/workflow-lint.yml
with:
?: ?
secrets:
?: ${{ secrets.? }}